package com.ruoyi.deal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 分类对象 hy_deal_category
 *
 * @author lixin
 * @date 2021-05-13
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("hy_deal_category")
public class HyDealCategory implements Serializable {

	private static final long serialVersionUID = 1L;


	/**
	 * 分类id
	 */
	@TableId(value = "category_id" , type = IdType.AUTO)
	private Integer categoryId;

	/**
	 * 分类名称
	 */
	private String categoryName;

	/**
	 * 父产品id
	 */
	private Integer parentId;

	/**
	 * 类目的显示图片
	 */
	private String categoryPic;

	/**
	 * 显示顺序
	 */
	private Integer orderNum;

	/**
	 * 产品状态（0正常 1停用）
	 */
	private Integer status;

	/**
	 * 分类层级
	 */
	private Integer categoryLevel;

	/**
	 * 子分类
	 */
	@TableField(exist = false)
	private List<HyDealCategory> children = new ArrayList<HyDealCategory>();

}
